work log refactored to select one resource per time