Support result type both

it make developers can do more works on the results.