optional argument added to split by direction. Default false. TODO: doesn't work yet when no filename specified