add Makefile
reduce complexity on views.api