rewrite to use loader for files, added explorer