permission control fix
datetime style fix
some fixes/workarounds