rewrite settings module (settings uses lua now)