WIP
debug file stuff