remove unused imports
fix variable type for assertion
s/act=/action=/