refactor line based configration.