make 0.5.0-compatible