refactor package
use flatten
log malformed url
so style
1.0.0