environment works!
problems with app termination