rewrite module for coscms