fix requires and misspellings