moving url parsing to separate func
changing method names to match coding conventions