improved ls functionality to only look at active blocks