various fixes and updates, base api functionality working