add initial support for callbacks
Add support for multiple callbacks