basic partition checking added