changing conn.rs to use &str rather than &String