moved making directories to another method, removed puts so this can run silently