read configurations from file