added possiblity to read from file