improvements to security and ui