add error checking and assume that no scale specified is seconds