add datetime selection on datastream load
add some error logs and fixed wrapped functions