macro for getInterface
use getInterface macro everywhere