added version varaible by example, and made pling go from a actionCode to a variable