added custom view engine support