added legacy apis