fix web spec for async functions