change dir before unpacking