attempt at type-safe stack point (failed horribly)
do actual calls to perl in Foreign module