:/

not too happy with how this is turning out, but whatever.
add lock

lockfile is a thing now.
fix warning