fixed namespace compile warnings/errors