attach handlers directly