added view support and migration support