differenciate dir and runtime_dir