breaking client function into separate file and renaming base to requests