ensure type is set first puppet run