rename connect to open. add steps to progress. refactoring app.cpp.