changed interval to plural, mysql uses it
added class_method option