adding required callback param to constructor