[fix] expose errors and callback