added MAPP init and opto test