add extract and rotate option to source