changed checkip return type to string