add exec function to module instance