added options: url and query prefix, load from txt file