added m_cap module
fixed x86_64 bugs