improve the mac assembly
external database
improved monitor
some bugs