bugfix, only delete a single func key
remove unused imports