fixed params being passed into attempts; refactored a bit - vincent