read parameters from file