added working routines for different apis and empty ones for future.