updates to trainer

also includes some event delegation debug for chrome