add port locking for loffice