catch errors
callback is now run with 2 arguments
split files