added more logging; added back logic for only handling 1 entry for now