added mkdir, worked out how to keep filesystem state across page reloads