initial commit, need more ref local files
updated to work locally
rejigged it a bit