add file to core