modified localpfgen