allow config script to refer to state. also allow letterboxing, fullscreen from config