exports for client side