code for mooltipass init