work in 0.6.0 version with orm