first commit
refactor
simplify vars
use common function to parse line
fix copying to local fs
first commit