set up versions and permissions code