added line parser for resource gradient