revision retrieval code moved to the servlet but commented out for now