more typesafety in the interface