reducing write delays and adding support for input queue length query