error message fixes and removal of deprecated methods