refactor filesystem formatting