added dump functions to runtime