added check for callback not set