fixed bugs in connection denial -- in progress