works on iPad, moved configuration to json file