added some missing semi-colons
made resubscribe smarter