fixed parsing/scope error by passing string to headless()