added sphinx doc logic