add logging and enable endpoint base