Prosecutors say three men accused of conspiring to bomb a Kansas mosque and an apartment complex housing Somali refugees also discussed killing the refugees' white landlord because he rented to Muslims.

The allegations are included in new court filings ahead of a Wednesday hearing to determine if one of the men, Gavin Wright, should be freed pending his trial.

Wright and co-defendants Curtis Allen and Patrick Stein were arrested in October 2016. The three men face charges of conspiring to detonate truck bombs at the apartment complex where Somali immigrants live.

Wright's attorney says Wright wasn't aware that his co-defendants intended to actually carry out the attack and portrays him as a lonely man desperate to find friends after moving to Liberal in southwestern Kansas.

But prosecutors submitted transcripts of profanity-laden recordings of the men discussing their plans that paint a more damning picture of Wright.

The court filings say the group's plans for violent action "became more specific and more advanced."

The filings say during regular meetings in August and September 2016 at Wright's business the group, called the Crusaders, selected a target, purchased equipment and gathered chemicals and other materials to start making homemade explosives.

The filings say during interactions with an undercover FBI employee, Stein said the Crusaders planned to attack Muslims in southwest Kansas.

"Stein explained that the purpose of the attack was "to take them [the Muslims] out...,'" the court filings say.

The filings say FBI agents arrested Stein on Oct. 14, 2016, during a third meeting with the undercover FBI employee, "shortly after (Stein) delivered approximately 300 pounds of urea to the undercover employee for use in assembling an explosive device.

Wright was arrested later on the day of Oct. 14. Allen was already in custody, having been arrested three days earlier for domestic violence.

The court filings provide further insight into the case against Wright, Allen and Stein, including background information on anti-Muslim statements they're accused of making and the transcripts of conversations where they discussed plans to carry out the bomb plot.