add code base with json auth
add other changes
add session management
merge all