* added option for setting lock directory