some fixes with ssl, added option for disabling ssl, some error-fixes with static calls, built functionality for enabling/disabling table-cache