added rewrite_soma cmd line option