code base for the lock legion