utility functions for sketch plugins