hits error on promise/catch