updated for use with bower require and independent log levels