added to convenience functions. started to add class methods