sphinx frame work edit by Gregor