changed structure to not use map and instead run a single sinatra app class