use const TARGETDIR everywhere