handle empty top line better
added more sample urls for testing