move scope related stuff