support for Perl callbacks
support for Perl callbacks