removed iostream dependency from repository... finally. using exception instead