fixed filtering bug, improved error handling, added configurationService.AddReferences