added some functionality from talerik