add dump routine