factors out utility code from main app
renames client app