added options processing for paths and toggle including dirs