deploy version. a little messy