some coding for myplex