more formatting and improved error checking on split filter