initial commit

supports percntage, user groups and global switches