bugfix for opts
upload for the win
bugfixes for import
bugfixes for candidate detection