add exception for jar mode