replaced direct calls to lsio_debug with LSIO_DEBUG macro