initial code for obj files (work in progress)