added offset to parser
fixed composing of sort