cleanup in Factory, added dispose to close aux files
added dispose, cleanup