added new module 'lang'
fixed rewriting