allow generation of globals + ui fixes