improved fragmsg accuracy, some minor cleanups