added error handling for corewearable