move interface definiton into right place