working on api for console routes