cleanup and addition of checkpath and other help methods.