export functions working with auxiliary data using StablePtr