object file generation and use working