added error handling for file copy
updating hypm ctd driver to use new state mech