added validation of sources