api to test session

added for testing. fall back when hitting api