added "ignore localhost"
added debug messages