Better errors handling and settable file manager