fixing a bug where data and constraints were not properly split. also fixing a bug where I wasn't reading the permalink from constraints