allow source pattern to be specified