add host option and fix undefined in header
bump (v0.2.4)