auto extrac code for interfaces
makefile fixes for interfaces