small fixes and started api service