profiling support, add input buffering to precompiled mode