remove autogenerated Makefile
add API and local accounting stuff