added cleanTarget feature