more hooks for security and customization