SPOKANE, Wash. -

The mother of a two-year old child murdered in her home last week will be allowed to go to drug rehabilitation rather than jail while awaiting trial on federal drug trafficking charges.

Lovina Rainey is not charged with the murder, but faces drug trafficking and weapons charges because of evidence uncovered after Adalynn's death. Detectives found meth and heroin in Rainey's bedroom. They also found a handgun, ledgers and other evidence of drug sales.

Adalynn died from abdominal trauma September 12th. Rainey admitted to police she left the child alone with her ex-boyfriend, Jason Obermiller, while she went out drinking with a man named "Stranger." Obermiller was arrested in Idaho this week; he's charged with Adalynn's murder.

Federal prosecutors wanted Rainey held in jail until her trial. They cite an extreme risk that Rainey will flee the area. She has been evicted from the home on East 55th, she has no job and, now that her kids have been taken away, no responsibilities. Prosecutors said she's also at risk because she and Obermiller stole four pounds of meth from local drug traffickers.

Prosecutors say Rainey hid out for a week after Adalynn's death and even skipped out on meetings with CPS and DEA agents who wanted to question her about her child's death. Prosecutors cited a KXLY news story, in which Rainey was described as putting "drugs first, her men second and her kids third." Prosecutors say she let her addiction rule her life and that the death of her child was the "most significant of all collateral consequences."

Rainey's attorney, however, argued that she should be placed in a rehab facility in North Idaho. Representatives from the Good Samaritan Rehabilitation facility told the judge they would take over as third party custodians, and would report to the court any behavior that would violate conditions of her release.

Good Samaritan is a faith-based rehab organization, offering what its website describes as "freedom from drugs and alcohol through a relationship with Jesus Christ." A pastor described a four month program that begins at a facility on Blue Creek Bay. Halfway through the program, clients are released to a "mentor home" to learn to function within family dynamics. In the last 30 days, they're hired for jobs within the community to help with the post-rehab transition.

Prosecutors expressed concern that the women's facility is an unsecure facility from which Rainey could walk away.

After a 25 minute hearing, U.S. magistrate John Rodgers sided with the defense and ruled Rainey could be released under a series of conditions. Among them, she will be fitted with an electronic monitoring bracelet that can track her whereabouts. She's also not allowed to possess firearms or use drugs or alcohol.

Rainey will be released from jail on these conditions Monday. 

Rainey's mother, Debbie Rainey, believes that treatment will benefit her daughter.

“I believe it's a very good thing for her to do and I just hope that she tries very hard and that she gets off these drugs because I know it's hard,” said Debbie.

Debbie thinks counselors have their work cut out for them, but appreciates Good Samaritan for approaching the court about releasing her daughter.

“I thank them very, very much for them giving her a chance, for helping her,” said Debbie. "And, one day, I hope to have a relationship with my daughter again.”