createApp
cleanup