added protocol guessing from a list on a file