added a close before open in mlk::fs