add error handling logic to see if ruby will kick off