implemented netlock.c -- haven't tested