added file system handling and creation functions. things are about to get dangerous.