add api and client file