updated sphinx script