add missing semicolon, fix missing imports