updated logging
added file objects