prototype of business layer for api