[api] simplify release code a bit