copy all the necessary stuff to workdir