lots of low level optimizations with memory alllocations
fixed server restart bug with wrong privileges
fixed module compile with additional flags