refactor and tests for slurper