ensure type of callback
update readme