added version flag