fix line in url
Implement the parser + some tests
fix deprecated functions
fix some tests