moved some code around
moved code around
created app entry point