added directory option on commit