functionality ready for api integration