correct path error and add defs