trying to avoid rejectedexection