preparing module to be handled client side