refactor training & add buychips