refactor to support COFF LIB files