cleanup, removed flask code