put hosts position on cfg