workaround for possible function argument serialization issue