add lock to user module