renamed socket and pid files, fixed bug