rewrite generate runplan
rewrite generate runplan