class rename and enable cors