add check_hostid

Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>