support ui-router with direct return of promise function / rename func