bug fixes in refernce.ts + working multiple controllers