fix for popcorn env, update script added