added option to specify work directory path
added option to specify work directory path