typo on init, now accepts param