corrections to app innitialization