move back to using format_error/1
Fix check for have_callback_support