added directory path option