moved name param to last argument to preserve backwards compatibility