add interval support