allow lonely if blocks
add stb global objects
add support to change resolution on the fly