add autodetect for potion files