rename sock and file
rename semaphore type