creates local scope where needed for scene
creates local scope for flags, removes passing throughout module