small api improivement