added rls qual check back to rewriteHandler.c due to an error during merge.