add initializer to $data

this fixes #159