add spn support