look to currying lock and unlock