position of edibox; fix some agent relation bugs