clean up of generate M
process HAMK verfication from server