added more exception handling to split and explode