Improper Roof Installation

As you can see in this image water running down the shingles behind the chimney dup under the rest of the roof. Also not properly flashed.