added dump
fixed dump functions