removing r scripts, handling hq sector