adding Emily's train controller stuff