$name should be optional