some improvements on compiler. made some multi-thread stress tests and
found and fixed some deadlocks. some package re-organization