major overhaul with regards to how files are linked