added wrappers for packet functions
added wrappers for host functions