only execute if app dir exists