cleaning up get projects matching code
logger moved to constructor