updated usage examples (using callbacks again)