code migration to 0.6