added fail safes and specs for csv check bounds