implement uuid support, back support and optimize

imports