adding method to enum, could probably use google-guava instead, will do for now