better logic for skipping lines using slime