working on ESVM trainer