added directory mark functions