working with files needs some work