improved stdeb stuff checking