updated process select to do rank to rank, fixed bug with openCount
improved control over debug statements