changed require once directive and removed hardcoded ip check