added paired end support