replaced $ENV with $SERVER