lock.h lock.c maybe done