provisional support for serialising functions