made it a bit more general for android export lib