added file lock once the proxy is started