v1.0 renamed bool -> boolean, fn -> function