function bounce now receive an object of parameters

first patch required on #13.