first rest parsing