add api to reduce and upgrade ship