firstworking version of versionlock addition, needs perfection