configuration switch to enable/disable layers. fixes #6