refactor to put common stuff in obi_project
in prog
login working