fixed some centos agent creation problems