return version instead of direct output

return version instead of direct output