moved actions to functions and using argument as release version