fix issue with /connection and lock