updated to allow beans as parameters