last commit fixed
host resolving fixed
make php 5.3 happy