check for root modules before drawing canvas