added more defensive against bad passed in data
moved version variables into postar