made asynchronous functions for loading and writing schema files and directories