rename api module and functions