added rename and call_api