enable remove function and a part of clone base file