clean up unwanted rest keys