setting up to use different layers dynamically