added more functions for client templates