bugfix for legacy apps + usr_env_compile