work on check_and copy plus some fixes