simplify check()
some fixups, improvements and features for lscd