implement @Pending feature

fixes #244
fixes #243
Remove outdated callback method style