added flag to allow adding prefix to target