fixed up api and sub job