strange error 'dump is not a function'