Adding environment setting features for applications under OMF