work on file reference counting (broken)
file reference counting working
style