pass memory to wmcontrol