made trackhandler a class