timestamping and clearer debug prints