made implementation of the momento contract optional
removed unused imports