cleanup paths
async true by default
put application path back for compatibility