add docs about callbacks