added extended trainer