mostly functions for admin and web