adding a utils file for the client side