firt try for intervals.. some bug fixes..