setting app environment