added error logging to troublesome action