initial commit (moving code accross from scp-go)