added binding to callbacks