automatic client side module construct