add mesh and input directory