updates to add api files to both client and server