fixes request env