working hex load procedure with validation