support lamba expressions for callbacks