make host not static
avoid stack overflow with large files