hackery with cmp/cpx/cpy
add gpl license headers to files