added scope, id, and headers