added misc extension methods