made a v2 verison based on the angularjs fullstack