changed first.lib to on.attach