add onassembly callback