adding client functions to main file