change a bit
adding permission and agent