creates directories from benfile