sets up source, destination. creates header and footer includes