cleaned up lambda exported handler.