more swapping

started the checking routine for swapping