work on views too (experimental for now)
finally add some configurability