removed unused flags and simplified a func
moved title into config