removed var-dump
changed singleton to use self not static to support earlier PHP version